package com.code2roc.fastboot.system.codegen.job;

import com.code2roc.fastboot.framework.quartz.LockQuartzJobBean;
import com.code2roc.fastboot.framework.quartz.QuartzTaskJob;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

@QuartzTaskJob(remark = "示例任务")
@Component
@DisallowConcurrentExecution
public class ExampleJob extends LockQuartzJobBean {

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        System.out.println("ExampleJob Running");
    }
}
